package java8_26.oop.Test_2;

public class BattlePlane extends Plane {
     private int bullet;
    public BattlePlane(double weight, double height,int bullet) {
        super(weight, height);
        this.bullet=bullet;
    }
    public void launch(Pilot p){
        System.out.println(p.getName()+"驾驶战斗机，发射导弹");
    }
    public void spiral(Pilot p){
        System.out.println(p.getName()+"驾驶战斗机，低空盘旋");
    }

    @Override
    public void fly(Pilot p) {
        System.out.println(p.getName()+"驾驶战斗机，快速起飞");
    }

    @Override
    public void quick(Pilot p) {
        System.out.println(p.getName()+"驾驶战斗机，不断加速");
    }

    @Override
    public void land(Pilot p) {
        System.out.println(p.getName()+"驾驶战斗机，快速降落");
    }

    public int getBullet() {
        return bullet;
    }

    public void setBullet(int bullet) {
        this.bullet = bullet;
    }
}
